#include "processbar.h"
#define len 101
#define style '#'
const char * lab="|/-\\";
void test()
{
	printf("666\n");
	printf("666\n");
	printf("666\n");
}
void myprocessbar()
{
	char bar[len];
	memset(bar,'\0',sizeof(bar));
	int cnt=0;
	while(cnt<=100)
	{
		printf("[%-100s][%d%%][%c]\r",bar,cnt,lab[cnt%4]);
		fflush(stdout);
		bar[cnt]='#';
		cnt++;
		usleep(100000);
	}
	printf("\n");
}
